<div id="main_content">
<table class="table" cellspacing="0" cellpadding="4" border="0">
    <tr>
        <th>ID</th>
        <?php foreach($meta as $row):?>
            <?php if ($row['type'] == 'textarea') continue;?>
            <th><?=$row['title']?></th>
        
        <?php endforeach;?>
        <th width="150px">Действия</th>
    <tr>
    <?php foreach($list as $row): ?>
    <tr>
        <td><?=$row[$node.'id']?></td>
        
        <?php foreach($meta as $field):?>
        <?php if ($field['type'] == 'textarea') continue;?>
        
        <td><?=$row[$node.$field['name']]?></td>
        <?php endforeach;?>
        
        <td>
        <?=modul_anchor('modul/node/data_edit/'.$node_free.'/'.$row[$node.'id'], image('images/icons/document__pencil.png'));?>
        <?=modalboxquestion('modul/node/data_del/'.$node_free.'/'.$row[$node.'id'], image('images/icons/cross.png'), 'Удалить запись')?>
        </td>
    </tr>
    <?php endforeach; ?>
</table>
<?=$pagination->render()?> 
<?=modul_anchor('modul/node/data_add/'.$node_free, 'Добавить запись', array('class' => 'add'));?>
</div>